﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sustainalytics.Governance.Computing
{
    public class GovernanceComputation
    {
        private static Action<string, string> _logging;

        public GovernanceComputation()
        {
        }

        //public void Start(GovernanceDataContainer dataSet)
        //{


        //    var engine = ComputationEngine.Instance(_logging);

        //    var id = engine.AddGovernanceSet(
        //        dataSet.SetId,
        //        dataSet.Companies.ToDomainModel(),
        //        dataSet.IndicatorTemplates,
        //        dataSet.CompaniesRawScores,
        //        dataSet.WeightMatrix,
        //        dataSet.Modifiers);

        //    var result = engine.ComputeGovernanceRatings(
        //        dataSet.SetId,
        //        dataSet.WeightMatrix.MatrixId,
        //        true,
        //        true);


        //    var computationEngine = GovernanceComputationEngine.Instance(_logging);
        //    var computationResult = computationEngine.ComputeRatings();


        //    var dto = new GovernanceRatingsDto { SetId = result.SetId, };

        //    var utils = new GovernanceComputeMap(result);
        //    dto.IssuesCodes = utils.ToIndicatorsGroupsDto();
        //    dto.CompanyRating = utils.GetRatings().ToList();

        //}

    }
}
